package com.tjetc._6big;

import java.math.BigInteger;

public class _1BigInteger {
    public static void main(String[] args) {
        /*
            BigInteger: 一般用来做大数精确计算


         */
        BigInteger num1 = new BigInteger("1089729384798237498723");
        BigInteger num2 = new BigInteger("10273423794729347928374897239");
        // 加
        System.out.println("num1.add(num2) = " + num1.add(num2));

        // 减
        System.out.println("num1.subtract(num2) = " + num1.subtract(num2));

        // 乘
        System.out.println("num1.multiply(num2) = " + num1.multiply(num2));
        // 除
        System.out.println("num1.divide(num2) = " + num1.divide(num2));
    }
}
